package com.roy.ffmpegwriter;

public class FfmpegWriter {
        static {
                System.loadLibrary("ffmpegwriter");
        }
        public native void startRecordWithFilePath(String filePath,
                                                   int width,
                                                   int height,
                                                   int frameRate,
                                                   int videoCodec,
                                                   int audioFormat,
                                                   int audioSampleRate,
                                                   int audioChannel,
                                                   int audioFrameRate,
                                                   int audioBitsRate);
        public native void addVideoData(byte[]data,int length,boolean isIFrame);
        public native void addAudioData(byte[]data,int length);
        public native void stopRecord();
        public native int checkJNI();
        public native void checkLog();
}
